﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Oliving.Edge.Model.ViewModels.Oliving
{
    public class SysConfigDto
    {

        /// <summary>
        /// Desc:key
        /// Default:
        /// Nullable:True
        /// </summary>
        [StringLength(256, MinimumLength = 3, ErrorMessage = "用户Code不能为空")]
        public string C_Key { get; set; }


        /// <summary>
        /// Desc:名称
        /// Default:
        /// Nullable:True
        /// </summary>
        [StringLength(256, MinimumLength = 3, ErrorMessage = "用户Code不能为空")]
        public string C_Name { get; set; }


        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary> 
        public string C_Renark { get; set; }


        /// <summary>
        /// Desc:状态
        /// Default:
        /// Nullable:True
        /// </summary>

        [Range(1, 100)]

        public int C_State { get; set; }


        /// <summary>
        /// Desc:类型
        /// Default:
        /// Nullable:True
        /// </summary>
        [Range(1, 100, ErrorMessage = "年龄必须介于1~100之间")]
        public int C_Type { get; set; }


        /// <summary>
        /// Desc:value 值
        /// Default:
        /// Nullable:True
        /// </summary>

        [Required(ErrorMessage = "用户Code不能为空")]
        public string C_Value { get; set; }




        /// <summary>
        /// Desc:主键，编号
        /// Default:
        /// Nullable:False
        /// </summary>


        public int C_ID { get; set; }




    }
}
